package com.alibaba.citrus.cr.forecast.facade.converter;


import com.epoch.app.crforecastsales.dto.request.QueryForecastLineRequest;

/**
 * @Author yuanDeng
 * @Date 2021/9/16 9:53
 **/
public class QueryForecastLineRequestConverter {
    public static QueryForecastLineRequest toQueryForecastLineResponse(QueryForecastLineRequest source) {
        if (source == null) {
            return null;
        }
        QueryForecastLineRequest target = new QueryForecastLineRequest();
        target.setId(source.getId());
        target.setGmtCreate(source.getGmtCreate());
        target.setGmtModified(source.getGmtModified());
        target.setBizCode(source.getBizCode());
        target.setMainOrderId(source.getMainOrderId());
        target.setStatus(source.getStatus());
        target.setStatuses(source.getStatuses());
        target.setDealStatuses(source.getDealStatuses());
        target.setCustomerCode(source.getCustomerCode());
//        target.setForecastAmount(source.getForecastAmount());
        target.setPredictReplyAmount(source.getPredictReplyAmount());
   //     target.setActualReplyAmount(source.getActualReplyAmount());
        target.setShouldPayFee(source.getShouldPayFee());
        target.setDiscountFee(source.getDiscountFee());
        target.setDetailRemark(source.getDetailRemark());
        target.setReplyStatus(source.getReplyStatus());
        target.setReplyTime(source.getReplyTime());
        target.setRefuseReason(source.getRefuseReason());
        target.setConfirmTime(source.getConfirmTime());
        target.setConfirmStatus(source.getConfirmStatus());
        target.setFinishedTime(source.getFinishedTime());
        target.setInventoryUnit(source.getInventoryUnit());
        target.setSaleUnit(source.getSaleUnit());
//        target.setUnitConversion(source.getUnitConversion());
        target.setWarehouseArea(source.getWarehouseArea());
        target.setWarehouseLocation(source.getWarehouseLocation());
//        target.setFeatures(source.getFeatures());
        target.setSyncVersion(source.getSyncVersion());
       // target.setCreatorId(source.getCreatorId());
    //   target.setModifierId(source.getModifierId());
        target.setTenantId(source.getTenantId());
        target.setStart(source.getStart());
        target.setLimit(source.getLimit());
        target.setChannelCodes(source.getChannelCodes());
        target.setDepartmentCodes(source.getChannelCodes());
        target.setDocReasons(source.getDocReasons());
        target.setProductGroupNames(source.getProductGroupNames());
        target.setSaleChannelCodes(source.getSaleChannelCodes());
        return target;
    }


}
